/**
 * 项目配置信息
 * @type {{domain: string, timeout: number, changeOrigin: boolean}}
 */

const CON = {
   // domain: 'https://xh.jucaiyunke.top/web/blog',//请求服务器地址
    domain: 'http://192.168.0.103/xh_tp6_blog/index',//请求服务器地址
    timeout:8000,//指定请求超时的毫秒数(0 表示无超时时间)
    changeOrigin:false,//是否开启跨域访问
    changeTime:(time)=>{
        let str = parseInt(time)*1000;
        let newDate = new Date(str);
        let year = newDate.getUTCFullYear();
        let month = newDate.getUTCMonth();
        let nowday = newDate.getUTCDate();
        let hours = newDate.getHours(); //取小时
        let minutes = newDate.getMinutes(); //取分钟
        hours = (hours < 10) ? "0" + hours : hours;
        minutes = (minutes < 10) ? "0" + minutes : minutes;
        let typeArr = {
            0: year + " " + month + "." + nowday + "" + " " + hours + ":" + minutes,
        };
        return typeArr[0];
    }
};
export {
    CON
}
